/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.mapfinal.server.layer.model;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author yangyong 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2022-04-02
 * @version 1.0
 * @since 1.0
 */
public class MfStyleCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static MfStyleCriteria create() {
		return new MfStyleCriteria();
	}
	
	public static MfStyleCriteria create(Column column) {
		MfStyleCriteria that = new MfStyleCriteria();
		that.add(column);
        return that;
    }

    public static MfStyleCriteria create(String name, Object value) {
        return (MfStyleCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("mf_style", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public MfStyleCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public MfStyleCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public MfStyleCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public MfStyleCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public MfStyleCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MfStyleCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public MfStyleCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public MfStyleCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public MfStyleCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public MfStyleCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public MfStyleCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public MfStyleCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public MfStyleCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public MfStyleCriteria andIdIsNull() {
		isnull("id");
		return this;
	}
	
	public MfStyleCriteria andIdIsNotNull() {
		notNull("id");
		return this;
	}
	
	public MfStyleCriteria andIdIsEmpty() {
		empty("id");
		return this;
	}

	public MfStyleCriteria andIdIsNotEmpty() {
		notEmpty("id");
		return this;
	}
       public MfStyleCriteria andIdEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdNotEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.NOT_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdGreaterThan(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.GREATER_THEN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.GREATER_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdLessThan(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.LESS_THEN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("id", value, ConditionMode.LESS_EQUAL, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("id", value1, value2, ConditionMode.BETWEEN, "id", "java.lang.Integer", "Float");
    	  return this;
      }

      public MfStyleCriteria andIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("id", value1, value2, ConditionMode.NOT_BETWEEN, "id", "java.lang.Integer", "Float");
          return this;
      }
        
      public MfStyleCriteria andIdIn(List<java.lang.Integer> values) {
          addCriterion("id", values, ConditionMode.IN, "id", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andIdNotIn(List<java.lang.Integer> values) {
          addCriterion("id", values, ConditionMode.NOT_IN, "id", "java.lang.Integer", "Float");
          return this;
      }
	public MfStyleCriteria andNameIsNull() {
		isnull("name");
		return this;
	}
	
	public MfStyleCriteria andNameIsNotNull() {
		notNull("name");
		return this;
	}
	
	public MfStyleCriteria andNameIsEmpty() {
		empty("name");
		return this;
	}

	public MfStyleCriteria andNameIsNotEmpty() {
		notEmpty("name");
		return this;
	}
        public MfStyleCriteria andNameLike(java.lang.String value) {
    	   addCriterion("name", value, ConditionMode.FUZZY, "name", "java.lang.String", "Float");
    	   return this;
      }

      public MfStyleCriteria andNameNotLike(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_FUZZY, "name", "java.lang.String", "Float");
          return this;
      }
      public MfStyleCriteria andNameEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameNotEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.NOT_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameGreaterThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.GREATER_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameLessThan(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_THEN, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameLessThanOrEqualTo(java.lang.String value) {
          addCriterion("name", value, ConditionMode.LESS_EQUAL, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("name", value1, value2, ConditionMode.BETWEEN, "name", "java.lang.String", "String");
    	  return this;
      }

      public MfStyleCriteria andNameNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("name", value1, value2, ConditionMode.NOT_BETWEEN, "name", "java.lang.String", "String");
          return this;
      }
        
      public MfStyleCriteria andNameIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.IN, "name", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andNameNotIn(List<java.lang.String> values) {
          addCriterion("name", values, ConditionMode.NOT_IN, "name", "java.lang.String", "String");
          return this;
      }
	public MfStyleCriteria andWorkspaceIsNull() {
		isnull("workspace");
		return this;
	}
	
	public MfStyleCriteria andWorkspaceIsNotNull() {
		notNull("workspace");
		return this;
	}
	
	public MfStyleCriteria andWorkspaceIsEmpty() {
		empty("workspace");
		return this;
	}

	public MfStyleCriteria andWorkspaceIsNotEmpty() {
		notEmpty("workspace");
		return this;
	}
        public MfStyleCriteria andWorkspaceLike(java.lang.String value) {
    	   addCriterion("workspace", value, ConditionMode.FUZZY, "workspace", "java.lang.String", "String");
    	   return this;
      }

      public MfStyleCriteria andWorkspaceNotLike(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.NOT_FUZZY, "workspace", "java.lang.String", "String");
          return this;
      }
      public MfStyleCriteria andWorkspaceEqualTo(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.EQUAL, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceNotEqualTo(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.NOT_EQUAL, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceGreaterThan(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.GREATER_THEN, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.GREATER_EQUAL, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceLessThan(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.LESS_THEN, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceLessThanOrEqualTo(java.lang.String value) {
          addCriterion("workspace", value, ConditionMode.LESS_EQUAL, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("workspace", value1, value2, ConditionMode.BETWEEN, "workspace", "java.lang.String", "String");
    	  return this;
      }

      public MfStyleCriteria andWorkspaceNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("workspace", value1, value2, ConditionMode.NOT_BETWEEN, "workspace", "java.lang.String", "String");
          return this;
      }
        
      public MfStyleCriteria andWorkspaceIn(List<java.lang.String> values) {
          addCriterion("workspace", values, ConditionMode.IN, "workspace", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andWorkspaceNotIn(List<java.lang.String> values) {
          addCriterion("workspace", values, ConditionMode.NOT_IN, "workspace", "java.lang.String", "String");
          return this;
      }
	public MfStyleCriteria andContentIsNull() {
		isnull("content");
		return this;
	}
	
	public MfStyleCriteria andContentIsNotNull() {
		notNull("content");
		return this;
	}
	
	public MfStyleCriteria andContentIsEmpty() {
		empty("content");
		return this;
	}

	public MfStyleCriteria andContentIsNotEmpty() {
		notEmpty("content");
		return this;
	}
        public MfStyleCriteria andContentLike(java.lang.String value) {
    	   addCriterion("content", value, ConditionMode.FUZZY, "content", "java.lang.String", "String");
    	   return this;
      }

      public MfStyleCriteria andContentNotLike(java.lang.String value) {
          addCriterion("content", value, ConditionMode.NOT_FUZZY, "content", "java.lang.String", "String");
          return this;
      }
      public MfStyleCriteria andContentEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentNotEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.NOT_EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentGreaterThan(java.lang.String value) {
          addCriterion("content", value, ConditionMode.GREATER_THEN, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentGreaterThanOrEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.GREATER_EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentLessThan(java.lang.String value) {
          addCriterion("content", value, ConditionMode.LESS_THEN, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentLessThanOrEqualTo(java.lang.String value) {
          addCriterion("content", value, ConditionMode.LESS_EQUAL, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentBetween(java.lang.String value1, java.lang.String value2) {
    	  addCriterion("content", value1, value2, ConditionMode.BETWEEN, "content", "java.lang.String", "String");
    	  return this;
      }

      public MfStyleCriteria andContentNotBetween(java.lang.String value1, java.lang.String value2) {
          addCriterion("content", value1, value2, ConditionMode.NOT_BETWEEN, "content", "java.lang.String", "String");
          return this;
      }
        
      public MfStyleCriteria andContentIn(List<java.lang.String> values) {
          addCriterion("content", values, ConditionMode.IN, "content", "java.lang.String", "String");
          return this;
      }

      public MfStyleCriteria andContentNotIn(List<java.lang.String> values) {
          addCriterion("content", values, ConditionMode.NOT_IN, "content", "java.lang.String", "String");
          return this;
      }
	public MfStyleCriteria andTypeIsNull() {
		isnull("type");
		return this;
	}
	
	public MfStyleCriteria andTypeIsNotNull() {
		notNull("type");
		return this;
	}
	
	public MfStyleCriteria andTypeIsEmpty() {
		empty("type");
		return this;
	}

	public MfStyleCriteria andTypeIsNotEmpty() {
		notEmpty("type");
		return this;
	}
       public MfStyleCriteria andTypeEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeNotEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.NOT_EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeGreaterThan(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.GREATER_THEN, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.GREATER_EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeLessThan(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.LESS_THEN, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("type", value, ConditionMode.LESS_EQUAL, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("type", value1, value2, ConditionMode.BETWEEN, "type", "java.lang.Integer", "Float");
    	  return this;
      }

      public MfStyleCriteria andTypeNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("type", value1, value2, ConditionMode.NOT_BETWEEN, "type", "java.lang.Integer", "Float");
          return this;
      }
        
      public MfStyleCriteria andTypeIn(List<java.lang.Integer> values) {
          addCriterion("type", values, ConditionMode.IN, "type", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andTypeNotIn(List<java.lang.Integer> values) {
          addCriterion("type", values, ConditionMode.NOT_IN, "type", "java.lang.Integer", "Float");
          return this;
      }
	public MfStyleCriteria andGeotypeIsNull() {
		isnull("geotype");
		return this;
	}
	
	public MfStyleCriteria andGeotypeIsNotNull() {
		notNull("geotype");
		return this;
	}
	
	public MfStyleCriteria andGeotypeIsEmpty() {
		empty("geotype");
		return this;
	}

	public MfStyleCriteria andGeotypeIsNotEmpty() {
		notEmpty("geotype");
		return this;
	}
       public MfStyleCriteria andGeotypeEqualTo(java.lang.Integer value) {
          addCriterion("geotype", value, ConditionMode.EQUAL, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeNotEqualTo(java.lang.Integer value) {
          addCriterion("geotype", value, ConditionMode.NOT_EQUAL, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeGreaterThan(java.lang.Integer value) {
          addCriterion("geotype", value, ConditionMode.GREATER_THEN, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("geotype", value, ConditionMode.GREATER_EQUAL, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeLessThan(java.lang.Integer value) {
          addCriterion("geotype", value, ConditionMode.LESS_THEN, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("geotype", value, ConditionMode.LESS_EQUAL, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("geotype", value1, value2, ConditionMode.BETWEEN, "geotype", "java.lang.Integer", "Float");
    	  return this;
      }

      public MfStyleCriteria andGeotypeNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("geotype", value1, value2, ConditionMode.NOT_BETWEEN, "geotype", "java.lang.Integer", "Float");
          return this;
      }
        
      public MfStyleCriteria andGeotypeIn(List<java.lang.Integer> values) {
          addCriterion("geotype", values, ConditionMode.IN, "geotype", "java.lang.Integer", "Float");
          return this;
      }

      public MfStyleCriteria andGeotypeNotIn(List<java.lang.Integer> values) {
          addCriterion("geotype", values, ConditionMode.NOT_IN, "geotype", "java.lang.Integer", "Float");
          return this;
      }
}